package com.company;

import java.util.Scanner;


public class Librarian
{
    BooksLog log = BooksLog.getInstance();

    public void librarianMenu() {

        while(true)
        {
            System.out.println(" ");
            System.out.println("Select an operation");
            System.out.println(" ");
            System.out.println("1.Show User Log");
            System.out.println("2.Logout");
            System.out.println("3.Quit");
            System.out.println(" ");

            int ch;
            Scanner in = new Scanner(System.in);
            ch = in.nextInt();
            switch (ch) {
                case 1:
                    log.display();
                    break;
                case 2:
                    return;
                case 3:
                    throw new RuntimeException("You have quit the application");

            }
        }
    }
}
